<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<%
	String str1 = (String)request.getAttribute("xmlString");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
  	<base href="<%=basePath%>"/>
    <title>企业汇总</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath+Util.SKIN%>/css/right.css">
	<script src="<%=basePath%>/js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="<%=basePath%>/js/oa.js" type="text/javascript"></script>
    <script src="<%=basePath%>/js/dbdialog/lhgdialog.js" type="text/javascript"></script>
	<script src="<%=basePath%>/js/checkbox1.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=basePath%>/js/selected.js"></script>
	<script type="text/javascript" src="/dySafety/js/My97DatePicker/WdatePicker.js" defer="defer"></script>
	<style type="text/css">
		.hideclass{display:none;}
	</style>
	<script type="text/javascript">
		function funChange(v){	//	table or charts
	 		if(v=="1"){
				$("#hid").addClass("hideClass");
				$("#accidentTj").removeClass("hideClass");
			}else if(v=="2"){
	    		$("#accidentTj").addClass("hideClass");
	 			$("#hid").removeClass("hideClass");
				document.form1.strXml.value="<%=str1%>" ;
				document.form1.target="show";
				document.form1.submit();
			}
  		}
		
	</script>
  </head>
  <body>
	<div class="body-box">
			<div class="map">
				<div class="map_con">
					<b>当前位置：</b> 统计分析 &gt; 企业统计 &gt; 企业类别统计
				</div>
			</div>
		<div id="container">	
			<div class="top_search">
				<fieldset>
				<legend>统计条件</legend>
					<form action="<%=basePath%>/FusionCharts/RunmaxChartReport1.jsp?strWidth=650" target="show" name="form1" method="post">
						<input type="radio" name="rad1"  value="1" checked="checked" onclick="funChange(this.value);">表格展示
						<input type="radio" name="rad1" value="2" onclick="funChange(this.value);">图形展示&nbsp;&nbsp;
						<input type="hidden" name="caption" value="${chartbean.caption }"/>
						<input type="hidden" name="xAxisName" value="${chartbean.x_axisName }"/>
						<input type="hidden" name="yAxisName" value="${chartbean.y_axisName }"/>
						<input type="hidden" name="exportFileName" value="${chartbean.exportFileName }"/>
						<input type="hidden" id="strXml" name="strXml" />
					</form>
				</fieldset>
			</div>	
			<div id="accidentTj">
			<span>${tip}</span>
			<table cellspacing="0" width="100px" class="mytable" >
				<tbody>
					<tr class="fixedHeaderTr">
						<th  height="34" width="14%" align="center" >${htmlTitle }</th>
						<th  height="34" width="11%">A级企业</th>
						<th  height="34" width="11%">B级企业</th>
						<th  height="34" width="11%">C级企业</th>
						<th  height="34" width="11%">D级企业</th>
						<th  height="34" width="11%">未评级企业</th>
						<th  height="34" width="11%">合计</th>
						<th  height="34" width="11%">百分比</th>
					</tr>
				<s:if test="%{htmlList.size>0}">
					<s:iterator value="htmlList" id="obj" status="x">
					<tr align="center">
						<td height="34" >&nbsp;
							<a href="<%=basePath %>/tjfx/corp_getShudiTypeTj.action?unitId=${obj[1]}&totalCounts=${obj[7]}&upLevelName=${obj[0] }&tjType=5&initType=${initType }&tjTypeFlag=${tjTypeFlag }&tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }" title="按行业统计">${obj[0]}</a>	
						</td>
						<td  height="34"  >&nbsp;
							<a target="_blank"  href="<%=basePath %>/tjfx/corp_getTjCorpList.action?corpGrade=A&tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }">${obj[2]}</a></td>
						<td  height="34"  >&nbsp;
							<a   target="_blank"  href="<%=basePath %>/tjfx/corp_getTjCorpList.action?corpGrade=B&tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }">${obj[3]}</a></td>
						<td  height="34"  >&nbsp;
							<a   target="_blank"  href="<%=basePath %>/tjfx/corp_getTjCorpList.action?corpGrade=C&tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }">${obj[4]}</a></td>
						<td  height="34"  >&nbsp;
							<a   target="_blank"  href="<%=basePath %>/tjfx/corp_getTjCorpList.action?corpGrade=D&tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }">${obj[5]}</a></td>
						<td  height="34"  >&nbsp;
							<a   target="_blank"  href="<%=basePath %>/tjfx/corp_getTjCorpList.action?corpGrade=null&tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }">${obj[6]}</a></td>
						<td  height="34"  >&nbsp;
							<a   target="_blank"  href="<%=basePath %>/tjfx/corp_getTjCorpList.action?tjTypeFlag2=${tjTypeFlag2 }:${obj[1] }&tjTypeFlag3=${tjTypeFlag3 }">${obj[7]}</a></td>
						<td  height="34"  >&nbsp;${obj[8]}</td>
					</tr>
					</s:iterator>
					<s:iterator value="sumList" id="sum" status="x">
						<tr align="center">
							<td class="s31" height="34"  rowspan="1" colspan="1" align="center">合计</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[2]}</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[3]}</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[4]}</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[5]}</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[6]}</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[7]}</td>
							<td class="s32" height="34"  rowspan="1" colspan="1">&nbsp;${sum[8]}</td>
						</tr>
					</s:iterator>
					<tr>
						<td colspan="6">
							<form target="_blank" method="post" action="<%=basePath%>/tjfx/corp_getTypeTj.action?initType=3&exportExcelFlag=1">
								<input type="submit" value="导出Excel" class="link_input"><br/>
							</form>
						</td>
					</tr>
				</s:if>
				<s:else>
					<tr>
						<td class="s41" height="34" width="219" colspan="6" style="text-align: center;">没有数据</td>
					</tr>
				</s:else>
			</tbody>
		</table>
	</div>
	<iframe id="hid" src="" name="show" marginWidth=0 marginHeight=0  frameBorder=0 width=100% scrolling=no height=5 onload="this.height=this.contentWindow.document.body.scrollHeight"></iframe>
  </div>		    
  </body>
</html>
